package
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	public class login extends Sprite
	{
		public function login()
		{
			addEventListener(Event.ADDED_TO_STAGE, onAdd);
		}
		
		private function onAdd($e:Event):void {
//			stage.scaleMode = StageScaleMode.NO_SCALE;
//			stage.align = StageAlign.TOP_LEFT;
			var label:TextField;
			label = new TextField;
			var f:TextFormat;
			f = new TextFormat;
			label.text = 'login form';
			f.color = 0xffffff;
			label.setTextFormat(f);
			label.addEventListener(MouseEvent.CLICK, onClose);
			
			addChild(label);
				
		}
		private function onClose($e:MouseEvent):void {
			dispatchEvent(new Event(Event.CLOSE));
		}
	}
}